package com.qf.smsplatform.interfaces;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * projectName: sms-platform
 *
 * @author: 黄睿武
 * time: 2021/8/9 20:10
 * description:接口启动类
 */

/**
 * @EnableEurekaClient 可以省略
 */
@SpringBootApplication(scanBasePackages = {"com.qf.smsplatform.interfaces","com.qf.smsplatform.common"})
@EnableEurekaClient
@EnableFeignClients
public class IntefaceApplication {
    public static void main(String[] args) {
        SpringApplication.run(IntefaceApplication.class, args);
    }

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
